<?php
/**
 * Created by PhpStorm.
 * User: Jerry
 * Date: 2017/1/6
 * Time: 10:55
 */

namespace YMApi\Controller;


use SDXApi\Service\BuyNowNoticeService;
use Think\Controller;

/**
 * Class BuyNowNoticeSmsController
 * @package SDXApi\Controller
 */
class BuyNowNoticeSmsController extends Controller
{
	/**
	 * 秒杀商品预警处理
	 * 秒杀商品通知
	 * Created by Jerry
	 */
	public function handle_buy_now_notice_send_sms()
	{

		$ip = get_client_ip();

		if ($ip != '127.0.0.1') {
			return false;
		}

		$buyNowService = new BuyNowNoticeService();
		$buyNowService->handNoticeSendSms();

	}
}